{% extends 'base.html' %}
{% block js %}
<script type="text/javascript" src="/static/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="/static/tiny_mce/textareas.js"></script>
{% endblock %}
{% block title %}blog{% endblock %}
{% block content %}
    <h3>{{ message.title }}</h3>
    <p>{{ message.content|safe }}</p>
    <p><span class="nav2links"><br />Posted by: {{ message.sender|escape }} | Date: {{ message.created|escape }} | Category: <a href="/blog/category/{{ message.category.key|escape }}">{{ message.category.category|escape }}</a>  | Visited: {{ message.visited }}</span></p>
{% endblock %}

{% block contentbottom %}
<h3>Comments:</h3>
{% for comment in comments %}
        <p>{{ comment.content|safe }}<span class="nav2links"><br />Posted by: {{ comment.sender }} | Date: {{ comment.created }}</span></p>
        <hr />
{% endfor %}
 <form action="." method="post" enctype="multipart/form-data">
  <table>
    {{ form.as_table }}
    <tr><td style="text-align:center" colspan="2">
      <input type="submit"
        value="Leave a Comment" />
    </td></tr>
  </table>
</form>
{% endblock %}
